home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / ada_met1.zip / PARSER_3.ADS < prev    next >
Text File  |  1990-06-21  |  5KB  |  78 lines

  1. --***************************************************************--
  2. --                                                               --
  3. --  TITLE:          AN ADA SOFTWARE METRIC                       --
  4. --                                                               --   
  5. --  MODULE NAME:    PACKAGE SPECIFICATION PARSER_3               --
  6. --  FILE NAME:      PARSER3.ADS                                  --
  7. --                                                               --
  8. --  LAST MODIFIED:  02 MAR 90                                    --
  9. --                                                               --
  10. --  DESCRIPTION:  This package contains thirty-five functions    --
  11. --       that make up the baseline productions for our top-down, --
  12. --       recursive descent parser.  Each function is preceded    --
  13. --       by the grammar productions they are implementing.       --
  14. --                                                               --  
  15. --  CHANGE LOG:                                                  -- 
  16. --              - modified function NAME to parse the colon      --
  17. --                that follows usage of the optional name for    --
  18. --                loops or blocks. If a colon is present, NAME   --
  19. --                passes back false since it is being called     --
  20. --                from other than BLOCK_STATEMENT or LOOP_       --
  21. --                STATEMENT.                                     --
  22. --                                                               --
  23. --  COPYRIGHT:  The Ada source code in this file is Copyright    --
  24. --              1990 by Source Translation & Optimization. There --
  25. --              are no restrictions to the use of this source    --
  26. --              code in any product or system that is released   --
  27. --              in non-source code form. Resale of this source   --
  28. --              code, without permission of STO, is a violation  --
  29. --              of our Copyright.                                --
  30. --                                                               --
  31. --                                                               --
  32. --  HELP:       For more information contact: Gregory Aharonian  --
  33. --              Source Translation & Optimization, P.O. Box 404  --
  34. --              Belmont, MA, 02178-0404            617-489-3727  --
  35. --***************************************************************--
  36.  
  37. package PARSER_3 is
  38.  
  39.   function  SUBTYPE_INDICATION                 return boolean;
  40.   function  ARRAY_TYPE_DEFINITION              return boolean;
  41.   function  CHOICE                             return boolean;
  42.   function  ITERATION_SCHEME                   return boolean;
  43.   function  EXPRESSION                         return boolean;
  44.   function  SIMPLE_EXPRESSION                  return boolean;
  45.   function  CONSTRAINT                         return boolean;
  46.   function  FLOATING_OR_FIXED_POINT_CONSTRAINT return boolean;
  47.   function  RANGES                             return boolean;
  48.   function  NAME                               return boolean;
  49.   function  INTEGER_TYPE_DEFINITION            return boolean;
  50.   function  DISCRETE_RANGE                     return boolean;
  51.   function  EXIT_STATEMENT                     return boolean;
  52.   function  RETURN_STATEMENT                   return boolean;
  53.   function  GOTO_STATEMENT                     return boolean;
  54.   function  DELAY_STATEMENT                    return boolean;
  55.   function  ABORT_STATEMENT                    return boolean;
  56.   function  RAISE_STATEMENT                    return boolean;
  57.  
  58. --
  59. -- The following procedures are declared locally in the package body
  60. --
  61. --    function LOOP_PARAMETER_SPECIFICATION return boolean;
  62. --    function RELATION                     return boolean;
  63. --    function RELATION_TAIL                return boolean;
  64. --    function SIMPLE_EXPRESSION_TAIL       return boolean;
  65. --    function TERM                         return boolean;
  66. --    function FACTOR                       return boolean;
  67. --    function PRIMARY                      return boolean;
  68. --    function INDEX_CONSTRAINT             return boolean;
  69. --    function AGGREGATE                    return boolean;
  70. --    function COMPONENT_ASSOCIATION        return boolean;
  71. --    function ALLOCATOR                    return boolean;
  72. --    function NAME_TAIL                    return boolean;
  73. --    function LEFT_PAREN_NAME_TAIL         return boolean;
  74. --    function ATTRIBUTE_DESIGNATOR         return boolean;
  75.  
  76.  
  77. end PARSER_3;
  78.